package cn.bitkit.component.config;

import cn.bitkit.component.context.BizServiceExecutor;
import cn.bitkit.component.context.BizServiceContext;
import cn.bitkit.component.context.SpringContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * @author changbo
 */
@Slf4j
@AutoConfiguration
public class EnvAutoConfig {

    @Bean
    public BizServiceContext serviceContext() {
        return new BizServiceContext();
    }

    @Bean
    public BizServiceExecutor serviceActuator() {
        return new BizServiceExecutor();
    }

    @Bean
    public SpringContext springContext() {
        return new SpringContext();
    }

}
